package com.kx.yooli.kx.wechat.mapper.paycard;

import com.kx.yooli.kx.wechat.po.bank.BankInfo;
import com.kx.yooli.kx.wechat.po.paycard.WechatPaycard;
import com.mybatisflex.annotation.UseDataSource;
import com.mybatisflex.core.BaseMapper;
import com.mybatisflex.core.query.QueryWrapper;
import com.mybatisflex.core.update.UpdateChain;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BankInfoMapper extends BaseMapper<BankInfo> {

    @UseDataSource("ds2")
    default List<BankInfo> getBankInfoListByCardNo(String cardNo){
        return selectListByQuery(QueryWrapper.create()
                .select()
                .from("bank_info")
                .where("cert_no=" +"'"+ cardNo+"'"));
    };


}
